package cn.njupt.map;

public class Test {

    static class Person{}


    public static void main(String[] args) {
        Map<String,Integer> map=new TreeMap<>();
        map.put("public",1);
        map.put("hello",2);
        map.put("public",2);
        map.put("zxx",3);
        map.put("ylf",4);
        System.out.println(map.size());
        map.traversal(new Map.Visitor<String, Integer>() {
            @Override
            public boolean visitor(String key, Integer value) {
                System.out.println(key+"_"+value);
                return false;
            }
        });
    }
}
